package com.ehotting.edsta.circuitDesign.generator.domain;

import java.io.Serializable;

/**
 * 输入场景参数
 * @TableName es_scene_param
 */
public class EsSceneParam implements Serializable {
    /**
     * 编号
     */
    private Long id;

    /**
     * 名称
     */
    private String name;

    /**
     * 序号
     */
    private Integer priority;

    /**
     * 电路编号
     */
    private Long circuit_id;

    /**
     * 输入最小值
     */
    private Double input_min_value;

    /**
     * 输入最大值
     */
    private Double input_max_value;

    /**
     * 编码
     */
    private String code;

    /**
     * 数据类型
     */
    private Integer data_type;

    /**
     * 元器件类型
     */
    private Integer component_type;

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    public Long getId() {
        return id;
    }

    /**
     * 编号
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 名称
     */
    public String getName() {
        return name;
    }

    /**
     * 名称
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 序号
     */
    public Integer getPriority() {
        return priority;
    }

    /**
     * 序号
     */
    public void setPriority(Integer priority) {
        this.priority = priority;
    }

    /**
     * 电路编号
     */
    public Long getCircuit_id() {
        return circuit_id;
    }

    /**
     * 电路编号
     */
    public void setCircuit_id(Long circuit_id) {
        this.circuit_id = circuit_id;
    }

    /**
     * 输入最小值
     */
    public Double getInput_min_value() {
        return input_min_value;
    }

    /**
     * 输入最小值
     */
    public void setInput_min_value(Double input_min_value) {
        this.input_min_value = input_min_value;
    }

    /**
     * 输入最大值
     */
    public Double getInput_max_value() {
        return input_max_value;
    }

    /**
     * 输入最大值
     */
    public void setInput_max_value(Double input_max_value) {
        this.input_max_value = input_max_value;
    }

    /**
     * 编码
     */
    public String getCode() {
        return code;
    }

    /**
     * 编码
     */
    public void setCode(String code) {
        this.code = code;
    }

    /**
     * 数据类型
     */
    public Integer getData_type() {
        return data_type;
    }

    /**
     * 数据类型
     */
    public void setData_type(Integer data_type) {
        this.data_type = data_type;
    }

    /**
     * 元器件类型
     */
    public Integer getComponent_type() {
        return component_type;
    }

    /**
     * 元器件类型
     */
    public void setComponent_type(Integer component_type) {
        this.component_type = component_type;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        EsSceneParam other = (EsSceneParam) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getPriority() == null ? other.getPriority() == null : this.getPriority().equals(other.getPriority()))
            && (this.getCircuit_id() == null ? other.getCircuit_id() == null : this.getCircuit_id().equals(other.getCircuit_id()))
            && (this.getInput_min_value() == null ? other.getInput_min_value() == null : this.getInput_min_value().equals(other.getInput_min_value()))
            && (this.getInput_max_value() == null ? other.getInput_max_value() == null : this.getInput_max_value().equals(other.getInput_max_value()))
            && (this.getCode() == null ? other.getCode() == null : this.getCode().equals(other.getCode()))
            && (this.getData_type() == null ? other.getData_type() == null : this.getData_type().equals(other.getData_type()))
            && (this.getComponent_type() == null ? other.getComponent_type() == null : this.getComponent_type().equals(other.getComponent_type()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getPriority() == null) ? 0 : getPriority().hashCode());
        result = prime * result + ((getCircuit_id() == null) ? 0 : getCircuit_id().hashCode());
        result = prime * result + ((getInput_min_value() == null) ? 0 : getInput_min_value().hashCode());
        result = prime * result + ((getInput_max_value() == null) ? 0 : getInput_max_value().hashCode());
        result = prime * result + ((getCode() == null) ? 0 : getCode().hashCode());
        result = prime * result + ((getData_type() == null) ? 0 : getData_type().hashCode());
        result = prime * result + ((getComponent_type() == null) ? 0 : getComponent_type().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", priority=").append(priority);
        sb.append(", circuit_id=").append(circuit_id);
        sb.append(", input_min_value=").append(input_min_value);
        sb.append(", input_max_value=").append(input_max_value);
        sb.append(", code=").append(code);
        sb.append(", data_type=").append(data_type);
        sb.append(", component_type=").append(component_type);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}